#include "vv_log.h"
#include "my_logger.h"

int main()
{
    vvlog_init("/home/bobbi/haha.log", "BOBBI", VV_LOG_INFO);
    vv_trace("bobbi'name: %s trace", "bobbi");
    vv_debug("bobbi'name: %s debug", "bobbi");
    vv_info("bobbi'name: %s info", "bobbi");
    vv_warn("bobbi'name: %s warn", "bobbi");
    vv_critical("bobbi'name: %s critical", "bobbi");
    vv_error("bobbi'name: %s error", "bobbi");
    vvlog_release();


    auto handle1 = vv_log_create("/home/bobbi/dada.log", "BOBBI1", VV_LOG_INFO);
//    void* handle1 = nullptr;
    vv_log_info(handle1, "bobbi'name: %s info", "bobbi");
    vv_log_warn(handle1, "bobbi'name: %s warn", "bobbi");

    auto handle2 = vv_log_create("/home/bobbi/dada.log", "BOBBI2", VV_LOG_INFO);
//    void* handle2 = nullptr;
    vv_log_info(handle2, "bobbi'name: %s info", "bobbi");
    vv_log_warn(handle2, "bobbi'name: %s warn", "bobbi");

}
